Skip to content

Patch pprint to make pytest diffs nicer for big objects#1

Closed
alexmojaki wants to merge 15 commits into
fix-datetime-utc-testsfrom
pprint
Closed

Patch pprint to make pytest diffs nicer for big objects#1
alexmojaki wants to merge 15 commits into
fix-datetime-utc-testsfrom
pprint

Conversation

@alexmojaki
Copy link
Copy Markdown
Owner

Closes samuelcolvin#73

Based on the branch in samuelcolvin#81

Copy link
Copy Markdown

@samuelcolvin samuelcolvin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise lgtm

Comment thread tests/test_base.py Outdated
evstratbg and others added 12 commits November 14, 2023 08:38
Hi! 

Thanks for the great tool.

In our system, we run checks on the licences in the libraries we use and
having `file` here adds some complexity in parsing.
Would it be possible to have a certain license here, as proposed?

---------

Co-authored-by: Samuel Colvin <s@muelcolvin.com>
This is not the same as
samuelcolvin#71, but it
originates at the same point. When I updated pytz to 2023.3.post1, I
started getting:
```
E       DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
```
This fixes it.

---------

Co-authored-by: Samuel Colvin <s@muelcolvin.com>
…lcolvin#81)

...and a few other things that got in my way as an initial contributor.

Closes samuelcolvin#33
fix samuelcolvin#72

Ended up having to do a bunch of things at the same time to get tests to
pass:
* drop 3.7 (added 3.12 at the same time)
* uprev deps
* uprev pydantic requirement to >2
* switch `IsUrl` to assume pydantic 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants